package com.example.rlw.mvpplugintest.downfile;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.GET;
import retrofit2.http.Streaming;
import retrofit2.http.Url;

/**
 * 描述：下载文件的接口
 * Created by rlw on 2019/3/4.
 */
public interface DownloadService {
    /**
     * 下载文件
     *
     * @param fileUrl 文件路径
     * @return
     */
    @Streaming
    @GET
    Observable<ResponseBody> downloadFile(@Url String fileUrl);
}
